package java4;

import java.util.Scanner;

public class Code052 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入您的税前工资:");
		double num = input.nextDouble();
		if(num>=83500){
			System.out.println("您的税后工资为:"+(3500+(num-3500)*(1-0.45)-13505));
		}
		else if(num>=58500){
			System.out.println("您的税后工资为:"+(3500+(num-3500)*(1-0.35)-5505));
		}
		else if(num>=38500){
			System.out.println("您的税后工资为:"+(3500+(num-3500)*(1-0.30)-2755));
		}
		else if(num>=12500){
			System.out.println("您的税后工资为:"+(3500+(num-3500)*(1-0.25)-1005));
		}
		else if(num>=8000){
			System.out.println("您的税后工资为:"+(3500+(num-3500)*(1-0.20)-555));
		}
		else if(num>=5000){
			System.out.println("您的税后工资为:"+(3500+(num-3500)*(1-0.10)-105));
		}
		else if(num>=3500){
			System.out.println("您的税后工资为:"+(3500+(num-3500)*(1-0.03)));
		}
		else{
			System.out.println("您不需要交税！");
		}
	}

}
